Skip to content

Conversation

@hassoncs
Copy link
Contributor

The issue was that when users added or modified custom headers, the changes were only stored in the local component state but never propagated to the main configuration object that gets saved.

The fix adds a useEffect hook that updates the main configuration whenever the custom headers change, ensuring they're properly saved when the user clicks the "Save" button.

Now users can successfully add custom headers to their OpenAI Compatible provider configurations.

fix-headers-dont-save

Test plan:

  • Added a header confirmed it saved
  • Added header, discarded changes, confirmed header is gone

Fixes: #383

The issue was that when users added or modified custom headers, the changes were only stored in the local component state but never propagated to the main configuration object that gets saved.

The fix adds a `useEffect` hook that updates the main configuration whenever the custom headers change, ensuring they're properly saved when the user clicks the "Save" button.

Now users can successfully add custom headers to their OpenAI Compatible provider configurations.

Test plan:
- Added a header confirmed it saved
- Added header, discarded changes, confirmed header is gone
@hassoncs
Copy link
Contributor Author

Roo fixed this, so closing our version: RooCodeInc/Roo-Code#3415.
I'll search better next time 😬

@hassoncs hassoncs closed this May 13, 2025
@hassoncs hassoncs deleted the fix-custom-headers-not-saved-383 branch May 13, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Headers are not saved for OpenAI Compatible providers

3 participants